<template>
  <div class="main">
    <div class="top-bar">
      <div class="top-title">
        <span>问卷设计器</span>
      </div>
      <ul class="top-list">
        <li>
          <a href="#">Github</a>
        </li>
        <li>
          <a href="#">Gitee</a>
        </li>
        <li>
          <a href="https://lj.information1.design/index.html">关于作者</a>
        </li>
      </ul>
    </div>
    <div class="main-container">
      <div class="main-left">
        <div class="main-box">
          <div class="box-title">
            <span>问卷设计器</span>
          </div>
          <div class="box-main">
            <span>
              一款基于Vue+ElementUI在前端实现的问卷设计小插件，
              共有九种题型可选择，界面精美，具有题型关联等特性。
              通过即插即用，可设计趣味测评和问卷调查，形成有效的发展性的策略性研究。
            </span>
          </div>
          <ul class="box-list">
            <li>
              <div class="list-btn" style="background-color: #f0ad4e;border: 1px solid #eea236">
                <a @click="toFormIndex()" style="cursor: pointer">
                  <span>开始体验</span>
                </a>
              </div>
            </li>
            <li>
              <div class="list-btn" style="background-color: #5cb85c;border: 1px solid #4cae4c">
                <a @click="toFormDs()" style="cursor: pointer">
                  <span>打赏作者</span>
                </a>
              </div>
            </li>
            <li>
              <div class="list-btn" style="background-color: #94acef;border: 1px solid #94acef">
                <a href="https://lj.information1.design/index.html">
                  <span>关于作者</span>
                </a>
              </div>
            </li>
          </ul>
        </div>
      </div>
      <div class="main-right">
        <img src="../assets/redirect_banner.png" alt="">
      </div>
    </div>
    <div class="footer">
      <div class="container">
        <div class="row">
          <div class="footer-p col-md-6 offset-md-3">
            <span>
              Copyright © 2021 <a href="#">问卷设计器</a> 版权所有 <a href="#">辽ICP备2020015703号-1</a>
            </span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
    export default {
        name: "Redirect",
        methods:{
          toFormIndex: function () {
            this.$router.push({
              path: `/form-index/`,
            });
          },
          toFormDs: function () {
            this.$router.push({
              path: `/form-ds/`,
            });
          },
        }
    }
</script>

<style scoped>
html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  overflow-y: auto;
}
ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.main {
  position: relative;
  height: 800px;
  width: 100%;
  background-color: #f1f6fd;
}
@media only screen and (max-width: 576px) {
  .main {
    height: 950px;
  }
}
.main .top-bar {
  position: fixed;
  height: 55px;
  width: 80%;
  margin-left: 10%;
}
@media only screen and (max-width: 576px) {
  .main .top-bar {
    width: 100%;
    margin-left: 0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
  }
}
.main .top-bar .top-title {
  float: left;
  display: flex;
  align-items: center;
  height: 100%;
  width: 200px;
}
@media only screen and (max-width: 576px) {
  .main .top-bar .top-title {
    padding-left: 15px;
    width: 150px;
  }
}
.main .top-bar .top-title span {
  font-size: 16px;
  color: #474157;
  font-weight: lighter;
}
@media only screen and (max-width: 576px) {
  .main .top-bar .top-title span {
    font-size: 13px;
  }
}
.main .top-bar .top-list {
  padding: 0;
  position: absolute;
  right: 200px;
  width: 300px;
  height: 55px;
}
@media only screen and (max-width: 576px) {
  .main .top-bar .top-list {
    right: 10px;
    width: 150px;
  }
}
.main .top-bar .top-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  float: left;
  width: 100px;
  height: 55px;
}
@media only screen and (max-width: 576px) {
  .main .top-bar .top-list li {
    width: 50px;
  }
}
.main .top-bar .top-list li a {
  font-size: 13px;
  color: #7a798c;
}
@media only screen and (max-width: 576px) {
  .main .top-bar .top-list li a {
    font-size: 9px;
  }
}
.main .main-container {
  width: 80%;
  margin-left: 10%;
  height: 710px;
}
@media only screen and (max-width: 576px) {
  .main .main-container {
    height: 500px;
  }
}
.main .main-container .main-left {
  padding-top: 120px;
  float: left;
  width: 45%;
  height: 100%;
}
@media only screen and (max-width: 576px) {
  .main .main-container .main-left {
    padding-top: 55px;
    float: none;
    width: 100%;
  }
}
.main .main-container .main-left .main-box {
  padding-top: 100px;
  width: 100%;
  height: 500px;
}
@media only screen and (max-width: 576px) {
  .main .main-container .main-left .main-box {
    padding-top: 50px;
  }
}
.main .main-container .main-left .main-box .box-title {
  display: flex;
  align-items: center;
  width: 100%;
  height: 70px;
}
@media only screen and (max-width: 576px) {
  .main .main-container .main-left .main-box .box-title {
    justify-content: center;
  }
}
.main .main-container .main-left .main-box .box-title span {
  font-size: 30px;
  color: black;
  font-weight: normal;
}
@media only screen and (max-width: 576px) {
  .main .main-container .main-left .main-box .box-title span {
    font-size: 25px;
  }
}
.main .main-container .main-left .main-box .box-main {
  width: 100%;
  height: 150px;
  text-align: left;
}
@media only screen and (max-width: 576px) {
  .main .main-container .main-left .main-box .box-main {
    height: 180px;
  }
}
.main .main-container .main-left .main-box .box-main span {
  font-size: 16px;
  color: #adb9e0;
  line-height: 40px;
}
@media only screen and (min-width: 375px) and (max-width: 576px) {
  .main .main-container .main-left .main-box .box-main span {
    font-size: 13px;
    line-height: 35px;
  }
}
@media only screen and (max-width: 375px) {
  .main .main-container .main-left .main-box .box-main span {
    font-size: 13px;
    line-height: 26px;
  }
}
.main .main-container .main-left .main-box .box-list {
  padding: 0  ;
  width: 100%;
  height: 80px;
}
@media only screen and (max-width: 576px) {
  .main .main-container .main-left .main-box .box-list {
    height: 50px;
  }
}
.main .main-container .main-left .main-box .box-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  float: left;
  height: 100%;
  width: 33.3%;
}
@media only screen and (max-width: 576px) {
  .main .main-container .main-left .main-box .box-list li {
    float: none;
    width: 100%;
  }
}
.main .main-container .main-left .main-box .box-list li .list-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  width: 150px;
  height: 40px;
}
.main .main-container .main-left .main-box .box-list li .list-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.main .main-container .main-left .main-box .box-list li .list-btn a span {
  font-size: 13px;
  color: white;
}
.main .main-container .main-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 50px;
  float: left;
  width: 55%;
  height: 100%;
  /*background-color: gold;*/
}
@media only screen and (max-width: 576px) {
  .main .main-container .main-right {
    float: none;
    height: 300px;
    width: 100%;
    padding-top: 0;
    /*background-color: rebeccapurple;*/
  }
}
.main .main-container .main-right img {
  height: 75%;
  width: 100%;
}
@media only screen and (max-width: 576px) {
  .main .main-container .main-right img {
    height: 80%;
    width: 100%;
  }
}
.main .footer {
  position: fixed;
  bottom: 0;
  height: 90px;
  width: 100%;
  background-color: #222222;
}
@media only screen and (max-width: 576px) {
  .main .footer {
    position: absolute;
  }
}
.main .footer .footer-p {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
}
.main .footer .footer-p span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
}
@media only screen and (max-width: 576px) {
  .main .footer .footer-p span {
    font-size: 11px;
  }
}
.main .footer .footer-p span a {
  color: #474157;
}
</style>
